<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="js/selectedList_student.js"></script>
<c:choose>
	<c:when test="${sessionScope.mvo!=null}">
		<input type="hidden" name="id" value="${sessionScope.mvo.id}">
		<input type="hidden" name="membertype" value="${sessionScope.mvo.membertype}">
		<div class="selectedList_student_container_default">
			<h3>${sessionScope.mvo.name }님의 찜리스트</h3>
			<div id ="selectedList_student_input">
				<input type="radio" name="listtype" value="s" checked="checked">내가 찜한 선생님
				<input type="radio" name="listtype" value="t">내 수업을 찜한 선생님
			</div>
			<p class="caution">선생님의 이름을 클릭하시면 상세정보를 알 수 있습니다.</p>
			<div id="selectedList_student_table_container">
				<div id="selectedList_student_table_type_s">
					<div id="selectedList_student_table_type_s_header" >
						<div class="selectedList_student_table_type_name">이름</div>
						<div class="selectedList_student_table_type_gender">성별</div>
						<div class="selectedList_student_table_type_university">대학교</div>
						<div class="selectedList_student_table_type_availablestudent">수업가능한 학생</div>
						<div class="selectedList_student_table_type_hoperegion">희망지역</div>
						<div class="selectedList_student_table_type_hopesubject">희망과목</div>
					</div>
					<div id="selectedList_student_table_type_s_accordion">
					<c:forEach items="${requestScope.map.s}" var="stList">
					<div class="selectedList_student_table_type_accordion_header">
						<div class="selectedList_student_table_type_name">${stList.teacherVO.name }
						<input type="hidden" name="teacherid" value="${stList.teacherVO.id }">
						<input type="hidden" name="teachermembertype" value="t">
						</div>
						<div class="selectedList_student_table_type_gender">${stList.teacherVO.gender }</div>
						<div class="selectedList_student_table_type_university">${stList.teacherVO.university }</div>
						<div class="selectedList_student_table_type_availablestudent">${stList.teacherVO.availablestudent }</div>
						<div class="selectedList_student_table_type_hoperegion">${stList.teacherVO.hoperegion }</div>
						<div class="selectedList_student_table_type_hopesubject">${stList.teacherVO.hopesubject }</div>
					</div>
					<div class="table_inner_form">
					</div>
					</c:forEach>
					</div> 
				</div> <%-- table_type_s --%>
				<div id="selectedList_student_table_type_t">
						<div id="selectedList_student_table_type_t_header">
							<div class="selectedList_student_table_type_lessonno">수업번호</div>
							<div class="selectedList_student_table_type_title">수업명</div>
							<div class="selectedList_student_table_type_name">이름</div>
							<div class="selectedList_student_table_type_gender">성별</div>
							<div class="selectedList_student_table_type_university">대학교</div>
							<div class="selectedList_student_table_type_availablestudent">수업가능한 학생</div>
						</div>
						<div id="selectedList_student_table_type_t_accordion">
						</div>
				</div><%-- table_type_t --%>
			</div><%-- table_container --%>
		</div>
	</c:when>
	<c:otherwise>
		<script type="text/javascript">
		var path ="selectedList/selectedList.mypage";
		path="/mypage.do";
		location.href="loginResult.do?path="+path;
		</script>
	</c:otherwise>
</c:choose>
